package com.team4.general;

import org.mapsforge.android.maps.MapView;
import org.mapsforge.android.maps.MapViewMode;

import android.content.Context;
import android.util.AttributeSet;

// This class initializes the Open Street View map
public class OSMView extends MapView{

	public OSMView(Context context)
    {
        super(context);
        initFields();
    }
	
	public OSMView(Context context, AttributeSet attrs)
    {
        super(context, attrs);
        initFields();      
    }
    public OSMView(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs);
        initFields();
    }
    
    private void initFields()	{
    	this.setClickable(true);
        this.setBuiltInZoomControls(true);
        this.setMapViewMode(MapViewMode.MAPNIK_TILE_DOWNLOAD);           
    }
	
}

